package cn.com.api.entity.base;

import java.io.Serializable;
import java.math.BigDecimal;

public class T_orderBase implements Serializable {

	private static final long serialVersionUID = 00L;

	// Genegrated Automatically.

	// 订单编号 Rid
	private Integer rid = 0;

	// 订单名称 Titles
	private String titles = "";

	// 商家编号 Shop_id
	private String shop_id = "";

	// 用户编号 User_id
	private String user_id = "";

	// 配送方式 Peisong
	private String peisong = "";

	// 用户姓名 Name
	private String name = "";

	// 电话号码 Tel
	private String tel = "";

	// 手机号 Mobile
	private String mobile = "";

	// 邮箱 Email
	private String email = "";

	// 邮政编码 Zip
	private String zip = "";

	// 地址 Address
	private String address = "";

	// 送达时间 Dtime
	private String dtime = "";

	// 备注 Bz
	private String bz = "";

	// 订单总金额 Money
	private BigDecimal money = new BigDecimal(0);

	// 提交账号 Appuser
	private String appuser = "";

	// 提交时间 Appdate
	private String appdate = "";

	// IP地址 Rip
	private String rip = "";

	// 1-未完成订单 2-客户取消 3-退货 4-商家取消 5-已完成 Enable
	private Integer enable = 0;

	// 支付状态0未支付， 1已支付， 2支付失败 Zi_status
	private Integer zi_status = 0;

	// 新注释： 1-待付款；2-已付款；3-已发货；4-已收货；5已取消；6-退货中；7-退货成功；8-退货失败
	private Integer dd_status = 1;

	// 支付方式 0-余额；1-支付宝；2-微信；3银联；
	private String zf_type = "";

	// 余额支付金额 Remainmoney
	private BigDecimal remainmoney = new BigDecimal(0);

	// 流水号-交易号 Serial
	private String serial = "";

	// 订单一起支付标记首个订单号 Serialflagno
	private String serialflagno = "";

	// 订单类型:0-购物订单，1-充值订单 , 2-充值有礼,3-积分兑换,4-1元购 5-广告订单(位置广告订单和红包广告订单) 6-普通红包
	// 7-申请合伙人订单,8-新发现活动订单,9-优惠券押金订单,10-优惠券支付订单 11-转账订单  12-注册交保证金
	private Integer ordertype = 0;

	// 支付时间 Paytime
	private String paytime = "";

	// 订单的商品总金额 Sumgoodsprice
	private BigDecimal sumgoodsprice = new BigDecimal(0);

	// 订单的配送费 Sendfee
	private BigDecimal sendfee = new BigDecimal(0);

	// 收货时间 Takegoodstime
	private String takegoodstime = "";

	// 订单取消原因 Cancelreason
	private String cancelreason = "";

	// 订单购买的货品记录 Product_ids
	private String product_ids = "";

	// 该订单对应的购物车记录 Car_ids
	private String car_ids = "";

	// 是否使用优惠券 0-未使用 1-使用 Is_quan
	private Integer is_quan = 0;

	// 优惠券id Quan_id
	private String quan_id = "";

	// 应付金额(优惠后金额) Paymoney
	private BigDecimal paymoney = new BigDecimal(0);

	// 配送时间：格式：2015-10-11 11:00-11:30 Senddate
	private String senddate = "";

	// 收货地址的经度 Longitude
	private String longitude = "";

	// 收货地址的纬度 Latitude
	private String latitude = "";

	// To_shop_distence
	private long to_shop_distence = 0;

	// To_user_distence
	private long to_user_distence = 0;

	// 是否配送--超出配送距离--客户自提，不配送 Is_send
	private Integer is_send = 0;

	// 订单奖励积分 Sumpoints
	private long sumpoints = 0;

	// 订单标号
	private String ordernum = "";

	// 是否启用餐盒费：0-未启用 1-启用 Is_lunchbox
	private Integer is_lunchbox = 0;

	// 餐盒费单价 Lunchbox_price
	private Integer lunchbox_price = 0;

	// 订单总的餐盒费 Sum_lunchbox_price
	private Integer sum_lunchbox_price = 0;

	// 订单商品总数量 Goodscount
	private Integer goodscount = 0;

	// 打印状态 0：未打印；1：已打印 Is_print
	private Integer is_print = 0;

	// 订单取消时间 Cancle_time
	private String cancle_time = "";

	// 订单打印时间 Print_time
	private String print_time = "";

	// 超时的责任方。0：未知；1：订单员；2：骑士组长；3：骑士；1,2：订单员和骑士组长；1,3：订单员和骑士；2,3：骑士组长和骑士
	// Overtime_duty
	private String overtime_duty = "";

	// Wxpaystr
	private String wxpaystr = "";

	// 扩展字段1 转账功能需要的字段（如果是转账订单，存储转给用户的id）
	private String ext_1 = "";

	// Ext_2 转账功能需要的字段 1-表示普通的转账，需要对方确认，0-扫码支付（转账），不需要对方确认
	private String ext_2 = "";

	// 如果是充值订单或者交保证金订单 这里存支付凭证图片地址
	private String ext_3 = "";

	// Ext_4
	private String ext_4 = "";

	// Ext_5
	private String ext_5 = "";

	private String remind_shipment = "";

	private Integer pl_status = 0;

	public Integer getPl_status() {
		return pl_status;
	}

	public void setPl_status(Integer pl_status) {
		this.pl_status = pl_status;
	}

	// 发票抬头
	private String receipt_title;
	// 发票明细
	private String receipt_desc;
	// 发票备注
	private String receipt_remark;
	// 快递公司名称
	private String express_corp;
	// 快递单号
	private String express_no;

	// 抛出订单的id；和主键相同时表示是原始订单；
	private Integer fromorderid = 0;

	public String getExpress_corp() {
		return this.express_corp;
	}

	public void setExpress_corp(String corp) {
		this.express_corp = corp;
	}

	public String getExpress_no() {
		return this.express_no;
	}

	public void setExpress_no(String no) {
		this.express_no = no;
	}

	public String getReceipt_title() {
		return receipt_title;
	}

	public void setReceipt_title(String receipt_title) {
		this.receipt_title = receipt_title;
	}

	public String getReceipt_desc() {
		return receipt_desc;
	}

	public void setReceipt_desc(String receipt_desc) {
		this.receipt_desc = receipt_desc;
	}

	public String getReceipt_remark() {
		return receipt_remark;
	}

	public void setReceipt_remark(String receipt_remark) {
		this.receipt_remark = receipt_remark;
	}

	public T_orderBase() {
		super();
	}

	public T_orderBase(Integer rid, String titles, String shop_id, String user_id, String peisong, String name,
			String tel, String mobile, String email, String zip, String address, String dtime, String bz,
			BigDecimal money, String appuser, String appdate, String rip, Integer enable, Integer zi_status,
			Integer dd_status, String zf_type, BigDecimal remainmoney, String serial, String serialflagno,
			Integer ordertype, String paytime, BigDecimal sumgoodsprice, BigDecimal sendfee, String takegoodstime,
			String cancelreason, String product_ids, String car_ids, Integer is_quan, String quan_id,
			BigDecimal paymoney, String senddate, String longitude, String latitude, long to_shop_distence,
			long to_user_distence, Integer is_send, long sumpoints, String ordernum, Integer is_lunchbox,
			Integer lunchbox_price, Integer sum_lunchbox_price, Integer goodscount, Integer is_print,
			String cancle_time, String print_time, String overtime_duty, String wxpaystr, String ext_1, String ext_2,
			String ext_3, String ext_4, String ext_5, String remind_shipment, Integer pl_status, String receipt_title,
			String receipt_desc, String receipt_remark, String express_corp, String express_no, Integer fromorderid) {
		super();
		this.rid = rid;
		this.titles = titles;
		this.shop_id = shop_id;
		this.user_id = user_id;
		this.peisong = peisong;
		this.name = name;
		this.tel = tel;
		this.mobile = mobile;
		this.email = email;
		this.zip = zip;
		this.address = address;
		this.dtime = dtime;
		this.bz = bz;
		this.money = money;
		this.appuser = appuser;
		this.appdate = appdate;
		this.rip = rip;
		this.enable = enable;
		this.zi_status = zi_status;
		this.dd_status = dd_status;
		this.zf_type = zf_type;
		this.remainmoney = remainmoney;
		this.serial = serial;
		this.serialflagno = serialflagno;
		this.ordertype = ordertype;
		this.paytime = paytime;
		this.sumgoodsprice = sumgoodsprice;
		this.sendfee = sendfee;
		this.takegoodstime = takegoodstime;
		this.cancelreason = cancelreason;
		this.product_ids = product_ids;
		this.car_ids = car_ids;
		this.is_quan = is_quan;
		this.quan_id = quan_id;
		this.paymoney = paymoney;
		this.senddate = senddate;
		this.longitude = longitude;
		this.latitude = latitude;
		this.to_shop_distence = to_shop_distence;
		this.to_user_distence = to_user_distence;
		this.is_send = is_send;
		this.sumpoints = sumpoints;
		this.ordernum = ordernum;
		this.is_lunchbox = is_lunchbox;
		this.lunchbox_price = lunchbox_price;
		this.sum_lunchbox_price = sum_lunchbox_price;
		this.goodscount = goodscount;
		this.is_print = is_print;
		this.cancle_time = cancle_time;
		this.print_time = print_time;
		this.overtime_duty = overtime_duty;
		this.wxpaystr = wxpaystr;
		this.ext_1 = ext_1;
		this.ext_2 = ext_2;
		this.ext_3 = ext_3;
		this.ext_4 = ext_4;
		this.ext_5 = ext_5;
		this.remind_shipment = remind_shipment;
		this.pl_status = pl_status;
		this.receipt_title = receipt_title;
		this.receipt_desc = receipt_desc;
		this.receipt_remark = receipt_remark;
		this.express_corp = express_corp;
		this.express_no = express_no;
		this.fromorderid = fromorderid;
	}

	// Rid
	public Integer getRid() {
		return this.rid;
	}

	public void setRid(Integer rid) {
		this.rid = rid;
	}

	// Titles
	public String getTitles() {
		return this.titles;
	}

	public void setTitles(String titles) {
		this.titles = titles;
	}

	// Shop_id
	public String getShop_id() {
		return this.shop_id;
	}

	public void setShop_id(String shop_id) {
		this.shop_id = shop_id;
	}

	// User_id
	public String getUser_id() {
		return this.user_id;
	}

	public void setUser_id(String user_id) {
		this.user_id = user_id;
	}

	// Peisong
	public String getPeisong() {
		return this.peisong;
	}

	public void setPeisong(String peisong) {
		this.peisong = peisong;
	}

	// Name
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	// Tel
	public String getTel() {
		return this.tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	// Mobile
	public String getMobile() {
		return this.mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	// Email
	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	// Zip
	public String getZip() {
		return this.zip;
	}

	public void setZip(String zip) {
		this.zip = zip;
	}

	// Address
	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	// Dtime
	public String getDtime() {
		return this.dtime;
	}

	public void setDtime(String dtime) {
		this.dtime = dtime;
	}

	// Bz
	public String getBz() {
		return this.bz;
	}

	public void setBz(String bz) {
		this.bz = bz;
	}

	// Money
	public BigDecimal getMoney() {
		return this.money;
	}

	public void setMoney(BigDecimal money) {
		this.money = money;
	}

	// Appuser
	public String getAppuser() {
		return this.appuser;
	}

	public void setAppuser(String appuser) {
		this.appuser = appuser;
	}

	// Appdate
	public String getAppdate() {
		return this.appdate;
	}

	public void setAppdate(String appdate) {
		this.appdate = appdate;
	}

	// Rip
	public String getRip() {
		return this.rip;
	}

	public void setRip(String rip) {
		this.rip = rip;
	}

	// Enable
	public Integer getEnable() {
		return this.enable;
	}

	public void setEnable(Integer enable) {
		this.enable = enable;
	}

	// Zi_status
	public Integer getZi_status() {
		return this.zi_status;
	}

	public void setZi_status(Integer zi_status) {
		this.zi_status = zi_status;
	}

	// Dd_status
	public Integer getDd_status() {
		return this.dd_status;
	}

	public void setDd_status(Integer dd_status) {
		this.dd_status = dd_status;
	}

	// Zf_type
	public String getZf_type() {
		return this.zf_type;
	}

	public void setZf_type(String zf_type) {
		this.zf_type = zf_type;
	}

	// Remainmoney
	public BigDecimal getRemainmoney() {
		return this.remainmoney;
	}

	public void setRemainmoney(BigDecimal remainmoney) {
		this.remainmoney = remainmoney;
	}

	// Serial
	public String getSerial() {
		return this.serial;
	}

	public void setSerial(String serial) {
		this.serial = serial;
	}

	// Serialflagno
	public String getSerialflagno() {
		return this.serialflagno;
	}

	public void setSerialflagno(String serialflagno) {
		this.serialflagno = serialflagno;
	}

	// Ordertype
	public Integer getOrdertype() {
		return this.ordertype;
	}

	public void setOrdertype(Integer ordertype) {
		this.ordertype = ordertype;
	}

	// Paytime
	public String getPaytime() {
		return this.paytime;
	}

	public void setPaytime(String paytime) {
		this.paytime = paytime;
	}

	// Sumgoodsprice
	public BigDecimal getSumgoodsprice() {
		return this.sumgoodsprice;
	}

	public void setSumgoodsprice(BigDecimal sumgoodsprice) {
		this.sumgoodsprice = sumgoodsprice;
	}

	// Sendfee
	public BigDecimal getSendfee() {
		return this.sendfee;
	}

	public void setSendfee(BigDecimal sendfee) {
		this.sendfee = sendfee;
	}

	// Takegoodstime
	public String getTakegoodstime() {
		return this.takegoodstime;
	}

	public void setTakegoodstime(String takegoodstime) {
		this.takegoodstime = takegoodstime;
	}

	// Cancelreason
	public String getCancelreason() {
		return this.cancelreason;
	}

	public void setCancelreason(String cancelreason) {
		this.cancelreason = cancelreason;
	}

	// Product_ids
	public String getProduct_ids() {
		return this.product_ids;
	}

	public void setProduct_ids(String product_ids) {
		this.product_ids = product_ids;
	}

	// Car_ids
	public String getCar_ids() {
		return this.car_ids;
	}

	public void setCar_ids(String car_ids) {
		this.car_ids = car_ids;
	}

	// Is_quan
	public Integer getIs_quan() {
		return this.is_quan;
	}

	public void setIs_quan(Integer is_quan) {
		this.is_quan = is_quan;
	}

	// Quan_id
	public String getQuan_id() {
		return this.quan_id;
	}

	public void setQuan_id(String quan_id) {
		this.quan_id = quan_id;
	}

	// Paymoney
	public BigDecimal getPaymoney() {
		return this.paymoney;
	}

	public void setPaymoney(BigDecimal paymoney) {
		this.paymoney = paymoney;
	}

	// Senddate
	public String getSenddate() {
		return this.senddate;
	}

	public void setSenddate(String senddate) {
		this.senddate = senddate;
	}

	// Longitude
	public String getLongitude() {
		return this.longitude;
	}

	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}

	// Latitude
	public String getLatitude() {
		return this.latitude;
	}

	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}

	// To_shop_distence
	public Long getTo_shop_distence() {
		return this.to_shop_distence;
	}

	public void setTo_shop_distence(Long to_shop_distence) {
		this.to_shop_distence = to_shop_distence;
	}

	// To_user_distence
	public Long getTo_user_distence() {
		return this.to_user_distence;
	}

	public void setTo_user_distence(Long to_user_distence) {
		this.to_user_distence = to_user_distence;
	}

	// Is_send
	public Integer getIs_send() {
		return this.is_send;
	}

	public void setIs_send(Integer is_send) {
		this.is_send = is_send;
	}

	// Sumpoints
	public Long getSumpoints() {
		return this.sumpoints;
	}

	public void setSumpoints(Long sumpoints) {
		this.sumpoints = sumpoints;
	}

	// Ordernum
	public String getOrdernum() {
		return this.ordernum;
	}

	public void setOrdernum(String ordernum) {
		this.ordernum = ordernum;
	}

	// Is_lunchbox
	public Integer getIs_lunchbox() {
		return this.is_lunchbox;
	}

	public void setIs_lunchbox(Integer is_lunchbox) {
		this.is_lunchbox = is_lunchbox;
	}

	// Lunchbox_price
	public Integer getLunchbox_price() {
		return this.lunchbox_price;
	}

	public void setLunchbox_price(Integer lunchbox_price) {
		this.lunchbox_price = lunchbox_price;
	}

	// Sum_lunchbox_price
	public Integer getSum_lunchbox_price() {
		return this.sum_lunchbox_price;
	}

	public void setSum_lunchbox_price(Integer sum_lunchbox_price) {
		this.sum_lunchbox_price = sum_lunchbox_price;
	}

	// Goodscount
	public Integer getGoodscount() {
		return this.goodscount;
	}

	public void setGoodscount(Integer goodscount) {
		this.goodscount = goodscount;
	}

	// Is_print
	public Integer getIs_print() {
		return this.is_print;
	}

	public void setIs_print(Integer is_print) {
		this.is_print = is_print;
	}

	// Cancle_time
	public String getCancle_time() {
		return this.cancle_time;
	}

	public void setCancle_time(String cancle_time) {
		this.cancle_time = cancle_time;
	}

	// Print_time
	public String getPrint_time() {
		return this.print_time;
	}

	public void setPrint_time(String print_time) {
		this.print_time = print_time;
	}

	// Overtime_duty
	public String getOvertime_duty() {
		return this.overtime_duty;
	}

	public void setOvertime_duty(String overtime_duty) {
		this.overtime_duty = overtime_duty;
	}

	// Wxpaystr
	public String getWxpaystr() {
		return this.wxpaystr;
	}

	public void setWxpaystr(String wxpaystr) {
		this.wxpaystr = wxpaystr;
	}

	// Ext_1
	public String getExt_1() {
		return this.ext_1;
	}

	public void setExt_1(String ext_1) {
		this.ext_1 = ext_1;
	}

	// Ext_2
	public String getExt_2() {
		return this.ext_2;
	}

	public void setExt_2(String ext_2) {
		this.ext_2 = ext_2;
	}

	// Ext_3
	public String getExt_3() {
		return this.ext_3;
	}

	public void setExt_3(String ext_3) {
		this.ext_3 = ext_3;
	}

	// Ext_4
	public String getExt_4() {
		return this.ext_4;
	}

	public void setExt_4(String ext_4) {
		this.ext_4 = ext_4;
	}

	// Ext_5
	public String getExt_5() {
		return this.ext_5;
	}

	public void setExt_5(String ext_5) {
		this.ext_5 = ext_5;
	}

	public String getRemind_shipment() {
		return this.remind_shipment;
	}

	public void setRemind_shipment(String shipment) {
		this.remind_shipment = shipment;
	}

	public Integer getFromorderid() {
		return fromorderid;
	}

	public void setFromorderid(Integer fromorderid) {
		this.fromorderid = fromorderid;
	}

	public void setTo_shop_distence(long to_shop_distence) {
		this.to_shop_distence = to_shop_distence;
	}

	public void setTo_user_distence(long to_user_distence) {
		this.to_user_distence = to_user_distence;
	}

	public void setSumpoints(long sumpoints) {
		this.sumpoints = sumpoints;
	}

}
